import request from '@/utils/request'

// 查询稽核类型稽核清单列表
export function listAuditTypeInventory(query) {
  return request({
    url: '/project/auditTypeInventory/list',
    method: 'get',
    params: query
  })
}

// 查询稽核类型稽核清单详细
export function getAuditTypeInventory(auditId) {
  return request({
    url: '/project/auditTypeInventory/' + auditId,
    method: 'get'
  })
}

// 新增稽核类型稽核清单
export function addAuditTypeInventory(data) {
  return request({
    url: '/project/auditTypeInventory',
    method: 'post',
    data: data
  })
}

// 修改稽核类型稽核清单
export function updateAuditTypeInventory(data) {
  return request({
    url: '/project/auditTypeInventory',
    method: 'put',
    data: data
  })
}
//填报稽核类型清单
export  function uploudAuditTypeInventory(data){
  return request({
    url:'/project/auditTypeInventory',
    method:'put',
    data:data
  })
}


// 删除稽核类型稽核清单
export function delAuditTypeInventory(auditId) {
  return request({
    url: '/project/auditTypeInventory/' + auditId,
    method: 'delete'
  })
}

// 导出稽核类型稽核清单
export function exportAuditTypeInventory(query) {
  return request({
    url: '/project/auditTypeInventory/export',
    method: 'get',
    params: query
  })

}

//获取下拉框
export function auditTypeInventory(data) {
  return request({
    url: '/project/auditTypeInventory/list/get',
    method: 'get',
    data: data
  })
}

//填报
export function tbAuditTypeInventory(data) {
  return request({
    url: '/project/auditTypeInventory/add',
    method: 'post',
    data: data
  })
}